<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			#box{
				width: 600px;
				height: 500px;
				display: grid;
				background: burlywood;
				grid-template-rows:100px 50px 150px;
				grid-template-columns:140px 200px 30px;
				justify-content: center;    /*设置内容区域在水平方向上居中*/
				align-content: space-around;  /*设置项目之间间距为上下两侧项目到容器间距的2倍*/				
			}
			#box div{
				background-color: rgba(255, 255, 255, 0.8);
				border: 1px solid red;
 				font-size: 30px;
			}	
		</style>
	</head>
	<body>
		<div id="box">
			<div>1</div>
			<div>2</div>
			<div>3</div>
			<div>4</div>
			<div>5</div>
			<div>6</div>
			<div>7</div>
			<div>8</div>
			<div>9</div>
			
		</div>
	</body>
</html>
